﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Ticker.cs" company="">
//   
// </copyright>
// <summary>
//   The ticker.
// </summary>
// --------------------------------------------------------------------------------------------------------------------


using System;
using System.ComponentModel;
using System.Text;

namespace Systemathics.UserControls
{
    /// <summary>
    /// The ticker.
    /// </summary>
    [TypeConverter(typeof (TickerConverter))]
    public class Ticker
    {
        private string ticker = string.Empty;
        [TypeConverter(typeof (ProvidersListConverter))]
        public string Provider { get; set; }
        public string Ric
        {
            get { return ticker; }
            set { ticker = value; }
        }
        public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append(Provider);
            sb.Append(",");
            sb.Append(ticker);
            return sb.ToString();
        }
    }
}